//package com.smartstate.admin.biz.convert;
//
//import com.smartstate.admin.biz.entity.bo.Enterprise;
//import com.smartstate.admin.biz.entity.dto.EnterpriseDto;
//import com.smartstate.common.base.constants.BizConstants;
//import com.smartstate.common.util.UuidUtil;
//import org.springframework.beans.BeanUtils;
//
//import java.time.LocalDateTime;
//
//public class EnterpriseConvert {
//    public static  Enterprise buildBo(EnterpriseDto enterpriseDto){
//        Enterprise enterprise = new Enterprise();
//        BeanUtils.copyProperties(enterpriseDto,enterprise);
//        return enterprise;
//    }
//
//    public static  Enterprise createNew(Enterprise enterprise){
//        String uuid = UuidUtil.getUuid();
//        enterprise.setId(uuid);
//        enterprise.setPid(BizConstants.NONE_NODE);
//        enterprise.setDeptType(BizConstants.COMP);
//        enterprise.setCreateTime(LocalDateTime.now());
//        enterprise.setPids("[" + uuid + "]");
//        enterprise.setEnterpriseId(uuid);
//        return enterprise;
//    }
//}
